import 'package:flutter_eve_plugin/store/user/main.dart';
import 'package:flutter_eve_plugin/store/ye_xiu/main.dart';
import 'health/main.dart';

class AppState {
  final HealthState headlthState;
  final AccountInfoState accountInfoState;
  final YeXiuState yeXiuState;

  AppState({
    this.headlthState,
    this.accountInfoState,
    this.yeXiuState
  });

  AppState copyWith({headlthState, accountInfoState, yeXiuState}) {
    return AppState(
        headlthState: headlthState ?? this.headlthState,
        accountInfoState: accountInfoState ?? this.accountInfoState,
        yeXiuState: yeXiuState ?? this.yeXiuState
    );
  }

  static AppState initialState() {
    return AppState(
        headlthState: HealthState.initialState(),
        accountInfoState: AccountInfoState.initialState(),
        yeXiuState: YeXiuState.initialState()
    );
  }
}
